<%@ page import="meow.Status" %>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main"/>
</head>
<body>
<div class="span-2"><!-- spacer --><br/></div>
<div class="span-36 last">
  <div class="message_big_body">
    <mw:message>${status.message}</mw:message>
    <div class="date_created">${status.dateCreated}</div>
  </div>
  <div class="clear span-5">
    <mw:icon username="${status.account.username}"/>
  </div>
  <div class="span-24">
    <h1><g:link controller="${status.account.username}">${status.account.username}</g:link></h1>
    ${status.account.userRealName}
  </div>
  <%-- ログインしてて，自分の発言だったら削除していい --%>
  <g:isLoggedIn><g:if test="${loggedInUsername() == status.account.username}">
  <div class="span-5 last">
    <g:form name="delete" url="[controller:'status', action:'delete', id:status.id]" method="POST">
      <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete"/></span>
    </g:form>
  </div>
  </g:if></g:isLoggedIn>
</div>
</body>
</html>
